package edu.lnu.ums.entities;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class HistoricalFigure extends UniversityConcernedPeople {
    private static final long serialVersionUID = 1L;

    @Column
    @Temporal(TemporalType.DATE)
    private Date yearOfBirth;

    @Column
    @Temporal(TemporalType.DATE)
    private Date yearOfDeath;

    public Date getYearOfBirth() {
        return yearOfBirth;
    }

    public void setYearOfBirth(Date yearOfBirth) {
        this.yearOfBirth = yearOfBirth;
    }

    public Date getYearOfDeath() {
        return yearOfDeath;
    }

    public void setYearOfDeath(Date yearOfDeath) {
        this.yearOfDeath = yearOfDeath;
    }
}
